package cn.znzz.cjm.feign;

import cn.znzz.cjm.doc.CourseDoc;
import cn.znzz.cjm.doc.QueryDoc;
import cn.znzz.cjm.query.CourseQuery;
import cn.znzz.cjm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "es-server",fallbackFactory = CourseDocFallBackFactory.class)
@RequestMapping("/coursedoc")
public interface CourseDocFeignClient {
    @PostMapping("/saveCourseDoc")
    AjaxResult saveCourseDoc(@RequestBody CourseDoc doc);
    @PostMapping("/delCourseDoc")
    AjaxResult delCourseDoc(@RequestBody CourseDoc doc);
    @PostMapping("/queryCourses")
    AjaxResult queryCourses(@RequestBody QueryDoc queryDoc);
}
